package com.sali.function_interface;

import java.util.function.Supplier;

/**
 * 供给型接口：没有输入参数，只有返回参数
 */
public class d_SupplierInterface {

    public static void main(String[] args) {
        Supplier<String> supplier = () -> "abc";
        System.out.println(supplier.get());
    }

}
